<?php

namespace frontend\models;


use yii\db\ActiveRecord;
/**
 * ContactForm is the model behind the contact form.
 */
class Resume extends ActiveRecord
{ 
	
    public static function tableName(){
     return'resume';
    }
    //关联表      get(关联表Model名)
    public function getType(){
    // 参数一 关联Model名   参数二 关联字段 不能写表.t_id 自己默认后边是本Model的表id  前边是关联表的id
        return $this->hasOne(Education::className(),['mid'=>'mid']);

    }


    public function getJob()
    {
        return $this->hasOne(Job::className(),['mid'=>'mid']);
    }
    

     public function getLangue()
    {
        return $this->hasOne(Langue::className(),['mid'=>'mid']);
    }
    

    
}